package lapsnake.model.stmt;

import lapsnake.model.*;
import lapsnake.model.data.*;
import lapsnake.model.misc.LapAlias;
import lapsnake.py.ast.ASTHelperFactory; import java.beans.PropertyVetoException;

import org.python.antlr.ast.*;

/**Wrapper class with helper functions for Import nodes*/
public class LapImport extends LapStatement {
	
	private ChildList<LapAlias> names = new ChildList<>(this, LapAlias.class, false);

	public LapImport(PyAST pyAST, ChildField<? super LapImport> parent, Import node) throws PropertyVetoException {
		super(pyAST, parent, node);
		
		ASTHelperFactory.makeHelpers(pyAST, names, node.getInternalNames());
		
		buildTextNodes(node);
	}
}
